import Vue from 'vue'
import Router from 'vue-router'
// import {deepCopy} from '@/utils/tools'


Vue.use(Router)

let router:any = new Router({
  routes: [
    {
      path: '/',
      redirect: '/sign-in'
    },
    {
      path: '/home',
      name: 'home',
      redirect: '/home/car-manage',
      component: Vue,
      children: [ 
        {
          path: 'sys-index',
          name: 'sysIndex',
          component: Vue
        },
        {
          path: 'car-manage',
          name: 'carManage',
          component: Vue,
        },
        {
          path: 'non-auto-insurance',
          name: 'nonAutoInsurance',
          component: Vue
        },
        {
          path: 'organization-manage',
          name: 'organizationManage',
          component: Vue,
        },
        {
          path: 'auditing-manage',
          name: 'auditingMange',
          component: Vue
        }
        
      ]
    },
    {
      path: '/sign-in',
      name: 'sign-in',
      component: Vue
    }
  ]
});


export default router